package com.system.tree.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;

import com.system.role.entity.Role;
import com.system.tree.entity.Tree;
import com.system.tree.entity.DTO.TreeChildrenDTO;

public interface ITreeService {
	public void saveOrUpdate(Tree tree);
	public void delete(Tree tree);
	public void delete(List<Long> ids);
	public Tree findOne(Long treeId);
	public TreeChildrenDTO findDTOAll();
	public List<Tree> findAll();
	public List<Tree> getFather(Long id);
	public List<Tree> getChildren(Long treeId);
	//动态条件查询
	public Page<Tree> findAll(Specification<Tree> spec, Pageable pageable);
}
